<div class="col_box">
    <div class="col_two clear">
        <form class="validform" method="post" action="/category/add/<?= $type ?>/">
            <input type="hidden" name="obj_id" value="<?= isset($_GET['obj_id']) ? $_GET['obj_id'] : '' ?>" />
            <dl><dt>分类类型：</dt>
                <dd>
                    <select name="type" id="" class="select" datatype="*" nullmsg="新增分类" disabled>
                        <option value="income" <?= $type == 'income' ? 'selected' : '' ?>>收入</option>
                        <option value="expense" <?= $type == 'expense' ? 'selected' : '' ?>>支出</option>
                    </select>
                </dd></dl>
            <dl><dt>上级分类：</dt><dd>
                    <select name="father_id" id="father_id" class="select" datatype="*" >
                        <?= get_category_option($type, 0, null, array(0 => '作为一级分类')) ?>
                    </select>
                </dd></dl>
            <dl><dt>分类名称：</dt><dd><input type="text" name="name" id="name" class="input" size="10" maxlength="15" datatype="*" style="width:100px;" /></dd></dl>
            <dl><dt>说　　明：</dt><dd><textarea name="content" cols="55" rows="4" class="textarea"></textarea></dd></dl>
            <dl><dt>　　　　　</dt>
                <dd>
                    <a href="javascript:;" class="btn btn_g_s submit"><span><b class="icon icon-ok"></b><em>提交</em></span></a>
                    <a href="javascript:;" class="btn btn_w_s cancel"><span><b class="icon icon-remove"></b><em>取消</em></span></a>
                    <div id="poststate"><span>&nbsp;</span><b></b></div>
                </dd></dl>
        </form>
    </div>
</div>
<script type="text/javascript">
    KS.common.load('category.edit');
</script>